projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5df8f01
)
* filelock.c (within_one_second): Now static.
author
Paul Eggert
<eggert@cs.ucla.edu>
Tue, 15 Mar 2011 01:16:59 +0000
(18:16 -0700)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Tue, 15 Mar 2011 01:16:59 +0000
(18:16 -0700)
src/ChangeLog
patch
|
blob
|
history
src/filelock.c
patch
|
blob
|
history
diff --git
a/src/ChangeLog
b/src/ChangeLog
index fae7e8a29c9da51762c33eb3751ab438f57b5ebe..25935defc9bda1f0610c02926f5024db6c8477b2 100644
(file)
--- a/
src/ChangeLog
+++ b/
src/ChangeLog
@@
-1,5
+1,7
@@
2011-03-15 Paul Eggert <eggert@cs.ucla.edu>
+ * filelock.c (within_one_second): Now static.
+
* buffer.c (fix_overlays_before): Mark locals as initialized.
(fix_start_end_in_overlays): Likewise. This function should be
simplified by using pointers-to-pointers, but that's a different
diff --git
a/src/filelock.c
b/src/filelock.c
index 7f8f0e1c0fb238703ed0c5ec9d1826e07d687e27..0e4cee3c844da95110698a415efd4418bb1d6771 100644
(file)
--- a/
src/filelock.c
+++ b/
src/filelock.c
@@
-382,7
+382,7
@@
lock_file_1 (char *lfname, int force)
/* Return 1 if times A and B are no more than one second apart. */
-int
+
static
int
within_one_second (time_t a, time_t b)
{
return (a - b >= -1 && a - b <= 1);